import request from "@/utils/request.js";

// 家庭信息
export function homeDetail(data) {
	return request.get('village/home/detail', data)
}
// 查看积分明细
export function getIntegralRecord(data) {
	return request.get('village/home/getIntegralRecord', data)
}
// 查看积分明细详情

export function getIntegralDetail(data) {
	return request.get('village/home/getIntegralDetail', data)
}
// 积分申请
export function apply(data) {
	return request.post('village/home/apply', data)
}
// 事项分类
export function getIntegralCategory(data) {
	return request.get('village/home/getIntegralCategory', data)
}
// 医院详情
export function getHospitalDetail(data) {
	return request.get('village/hospital/getHospitalDetail', data)
}
// 查询科目

export function getCategory(data) {
	return request.get('village/hospital/getCategory', data)
}
// 医生列表
export function searchDoctor(data) {
	return request.get('village/hospital/searchDoctor', data)
}
// 医生详情
export function getDoctorDetail(data) {
	return request.get('village/hospital/getDoctorDetail', data)
}
// 更具日期查询预约情况
export function getDayInfo(data) {
	return request.get('village/hospital/getDayInfo', data)
}

// 查询就诊人
export function getVisitor(data) {
	return request.get('village/hospital/getVisitor', data)
}
// 添加就诊人
export function addVisitor(data) {
	return request.post('village/hospital/addVisitor', data)
}
// 删除就诊人
export function delVisitor(data) {
	return request.get('village/hospital/delVisitor', data)
}
// 正式预约
export function book(data) {
	return request.post('village/hospital/book', data)
}
// 预约列表
export function getBookList(data) {
	return request.get('village/hospital/getBookList', data)
}
// 预约详情
export function getBookDetail(data) {
	return request.get('village/hospital/getBookDetail', data)
}
// 取消预约
export function cancel(data) {
	return request.get('village/hospital/cancel', data)
}
// 村极大事列表
export function getH5VillageRecords(data) {
	return request.get('village/news/getH5VillageRecords', data)
}
// 村极大事列表详情
export function getH5VillageDetail(data) {
	return request.get('village/news/getH5VillageDetail', data)
}
// 通知公告类型
export function newsGetCategory(data) {
	return request.get('village/news/getCategory', data)
}
// 通知公告列表
export function newsgetH5List(data) {
	return request.get('village/news/getH5List', data)
}
// 通知公告列表
export function newsgetH5Detail(data) {
	return request.get('village/news/getH5Detail', data)
}

// 村规民约分类

export function ruleGetCategory(data) {
	return request.get('village/rule/getCategory', data)
}
// 村规民约列表
export function getH5List(data) {
	return request.get('village/rule/getH5List', data)
}
// 村规民约详情
export function rulegetH5Detail(data) {
	return request.get('village/rule/getH5Detail', data)
}
// 积分公式
export function getIntegralPub(data) {
	return request.get('village/home/getIntegralPub', data)
}
// 积分公式详情
export function getPubDetail(data) {
	return request.get('village/home/getPubDetail', data)
}




// 饼图
export function chartCircle(data) {
	return request.get('village/chart/circle', data)
}
// 折线图
export function chartLine(data) {
	return request.get('village/chart/line', data)
}
// 积分排行
export function homeRank(data) {
	return request.get('village/home/rank', data)
}